<script src="<?php echo base_url('assets/js/admin/pagination.js'); ?>" type="text/javascript"></script>
<div id="main-wrapper">
    <div class="container-12">
        <div id="main" class="clearfix">
            <div id="content" class="column grid-12" role="main">
                <div class="section">
                    <h3 class="title" id="page-title">Notícias</h3>

                    <div class="page-content">
                        <div class="region region-content">
                            <div id="block-system-main" class="block block-system block-even">
                                <div class="block-title">
                                </div>

                                <div class="content">
                                    <?php
                                    if (!empty($noticias)) {
                                        foreach ($noticias as $noticia) {
                                            include 'noticia.php';
                                        }
                                        $config['uri_segment'] = 4;
                                        $config['total_rows'] = $total;
                                        $config['per_page'] = LIMITE_PAGINACAO_ADMIN;
                                        $config['base_url'] = site_url('site/noticia/index');
                                        $config['use_page_numbers'] = TRUE;
                                        $this->pagination->initialize($config);
                                        printf('<div class="item-list">
                                                <ul class="pager">
                                                    %s 
                                                </ul>
                                            </div>'
                                        , $this->pagination->create_links());
                                        
                                    } else {
                                        echo '<p class="nenhum-resultado" style="padding: 3px 0; margin: 0;">Nenhum notícia foi postada.</p>';
                                    }
                                    ?>
                                </div>
                                <!-- /.content -->
                            </div>
                            <!-- /.block -->  
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- /#main -->
    </div>
</div>
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery( 'body' ).removeClass( 'front page-node' ).addClass( 'not-front page-blog section-blog' );
    });
</script>